
import java.util.Scanner;

public class E_1001 {
    public static void main(String[] args) {

        int a,b,i,sum;
        int[] s = new int[3];

        Scanner in = new Scanner(System.in);
        a = in.nextInt();
        b = in.nextInt();

        s[1]=s[2]=s[0]=0;
        sum = a+b;

        for (i=0;sum/1000!=0;++i){
            s[i] = sum % 1000;
            sum /= 1000;
        }

        s[i] = sum%1000;

        if (s[2]!=0) {
            System.out.printf("%d,", s[2]);
        }
        if( (s[2]!=0) || (s[1]!=0) ) {

            if(s[2]!=0) {
                System.out.printf("%03d,", Math.abs(s[1]));
            } else {
                System.out.printf("%d,", s[1]);
            }
        }
        if ((s[2]!=0) || (s[1]!=0)) {
            System.out.printf("%03d", Math.abs(s[0]));
        } else {
            System.out.printf("%d", s[0]);
        }
    }
}
